package com.jingyi.common.enums;

public enum RecordState {
    NOT_AUDIT("0", "未审核"),
    PROCESSED("1", "处理完成"),
    AUDIT_PASS("2","审核通过"),
    AUDIT_FAILED("3","审核不通过"),
    SUPPLEMENT("4","退回补件");

    private String code;
    private String desc;

    public String getCode(){
        return this.code;
    }

    public String getDesc(){
        return this.desc;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    RecordState(String code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public static RecordState getByCode(String code){
        for (RecordState g : RecordState.values()) {
            if (g.code.equals(code)) {
                return g;
            }
        }
        return null;
    }
}
